import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import "king7-gantt/codebase/dhtmlxgantt.css" // 在css中引入
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from './router'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import VueGridLayout from 'vue-grid-layout'
import VxeTable from 'vxe-table'
import 'vxe-table/lib/style.css'

// 创建pinia实例
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(ElementPlus)
app.use(router)
app.use(pinia)
app.use(VueGridLayout)
app.use(VxeTable)

app.mount('#app')
